/*----------------------------------------------------------------------------------------
*
*  Copyright 2019, Gao Hai Hui, <fromzeropoint@126.com>.  All rights reserved.
*  https://gitee.com/helloworldghh/cat.git
*  Use of this source code is governed by a MIT license
*  that can be found in the License file.
*
----------------------------------------------------------------------------------------*/
#ifndef __DATA_STRUCT_DATA_H__
#define __DATA_STRUCT_DATA_H__

#include "../tools/head.h"
#include "../msg/head.h"

namespace jsp
{
    class data : public xos_stl::mem_item< data, thread_lock >
    {
    public:
        typedef data T;

    public:
        ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
        // 
        static int get_addr( POOL *** pppPool, void *** pppGroup, LIST *** pppList, T *** pppObj, xos_odbc::i_fields *** pppFields );

    public:
        data();
        ~data();

    public:
        enumJspType m_eType;
        int m_nIndex;

        std::string m_content;
        std::string m_param;
        std::string m_cmd;

        xos::i_buf * m_pBuf;
        std::string m_str;

    protected:
        int init_data();
        
    public:
        int release();
        int init();
        int term();
        
    };

} // jsp

#endif // __DATA_STRUCT_DATA_H__
